package edu.uwm.capstone.util;

import android.util.Log;

public class DebugUtil {
	private static String DEBUG_TAG = "DiaSmart";

	public static void debug(Object tagName, String msg) {
		Log.d(getLogKey(tagName), msg);
	}

	public static void debug(Object tagName, String msg,
			Throwable error) {
		Log.d(getLogKey(tagName), msg, error);
	}

	public static <T> String getLogKey(Class<T> className) {
		return DEBUG_TAG + "/" + className.getSimpleName();
	}

	public static String getLogKey(Object paramObject) {
		return getLogKey(paramObject.getClass());
	}
}